package com.iting.anocationdemo.service.impl;

import com.iting.anocationdemo.dao.UserDao;
import com.iting.anocationdemo.service.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author iting Nie
 * @version 1.1
 * @create 2021/11/25
 */
@Component
public class ServiceImpl implements Service {
	@Autowired
	private UserDao userDao;
	@Override
	public void add() {
		System.out.println("ServiceImpl的add方法执行了");
		userDao.add();
	}
}
